package com.pointstar.dp.modules.project.controller;

import com.pointstar.dp.common.annotation.SysLog;
import com.pointstar.dp.common.entity.Page;
import com.pointstar.dp.common.entity.R;
import com.pointstar.dp.modules.project.entity.OutBoundEntity;
import com.pointstar.dp.modules.project.entity.dto.InOutBoundDTO;
import com.pointstar.dp.modules.project.entity.ro.SaveOutBoundRo;
import com.pointstar.dp.modules.project.service.InOutBoundService;
import com.pointstar.dp.modules.project.service.OutBoundService;
import com.pointstar.dp.modules.sys.controller.AbstractController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 入出库分析
 * @author Korey<m13057531285@163.com>
 */
@RestController
@RequestMapping("/inoutbound")
public class InOutBoundController extends AbstractController {

	private final InOutBoundService inOutBoundService;

	@Autowired
	public InOutBoundController(InOutBoundService inOutBoundService) {
		this.inOutBoundService = inOutBoundService;
	}


	/**
	 * 查询统计分析列表
	 *
	 * @param params 查询参数
	 * @return 统计分析列表
	 */
	@PostMapping("/list")
	public Page<InOutBoundDTO> listAnalyse(@RequestBody Map<String, Object> params) {
		return inOutBoundService.listAnaylse(params);
	}
	
}
